home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 September / Enter 09 2006.iso / Internet / SpamExperts Home 1.1 / SpamExperts Home.exe / lib / spamexperts.modules / zope / interface / __init__.pyc (.txt) next >
Encoding:
Python Compiled Bytecode  |  2006-07-14  |  2.5 KB  |  58 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. '''Interfaces
  5.  
  6. This package implements the Python "scarecrow" proposal.
  7.  
  8. The package exports two objects, `Interface` and `Attribute` directly. It also
  9. exports several helper methods. Interface is used to create an interface with
  10. a class statement, as in:
  11.  
  12.   class IMyInterface(Interface):
  13.     \'\'\'Interface documentation
  14.     \'\'\'
  15.  
  16.     def meth(arg1, arg2):
  17.         \'\'\'Documentation for meth
  18.         \'\'\'
  19.  
  20.     # Note that there is no self argument
  21.  
  22. To find out what you can do with interfaces, see the interface
  23. interface, `IInterface` in the `interfaces` module.
  24.  
  25. The package has several public modules:
  26.  
  27.   o `declarations` provides utilities to declare interfaces on objects. It
  28.     also provides a wide range of helpful utilities that aid in managing
  29.     declared interfaces. Most of its public names are however imported here. 
  30.  
  31.   o `document` has a utility for documenting an interface as structured text.
  32.  
  33.   o `exceptions` has the interface-defined exceptions
  34.  
  35.   o `interfaces` contains a list of all public interfaces for this package.
  36.  
  37.   o `verify` has utilities for verifying implementations of interfaces.
  38.  
  39. See the module doc strings for more information.
  40.  
  41. $Id: __init__.py 27056 2004-08-12 16:09:51Z srichter $
  42. '''
  43. from zope.interface.interface import Interface, _wire
  44. _wire()
  45. del _wire
  46. from zope.interface.interface import Attribute, invariant
  47. from zope.interface.declarations import providedBy, implementedBy
  48. from zope.interface.declarations import classImplements, classImplementsOnly
  49. from zope.interface.declarations import directlyProvidedBy, directlyProvides
  50. from zope.interface.declarations import implements, implementsOnly
  51. from zope.interface.declarations import classProvides, moduleProvides
  52. from zope.interface.declarations import Declaration
  53. from zope.interface.exceptions import Invalid
  54. from zope.interface.declarations import Provides
  55. from zope.interface.interfaces import IInterfaceDeclaration
  56. moduleProvides(IInterfaceDeclaration)
  57. __all__ = ('Interface', 'Attribute') + tuple(IInterfaceDeclaration)
  58.